﻿<telerikWindow:RadWindow x:Class="Rio.Framework.Pages.ChildWindows.EmailWindow"
                         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                         xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
                         mc:Ignorable="d"
                         xmlns:telerikWindow="http://schemas.telerik.com/2008/xaml/presentation"
                         d:DesignWidth="700"
                         d:DesignHeight="400"
                         Width="700"
                         Name="emailWindow"
                         Header="{Binding Title, ElementName=emailWindow, Mode=TwoWay}"
                         MinHeight="340">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="55" />
            <RowDefinition Height="34" />
            <RowDefinition Height="34" />
            <RowDefinition Height="140" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition MaxWidth="120" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Border  Height="50"
                 HorizontalAlignment="Stretch"
                 Grid.Row="0"
                 Grid.ColumnSpan="2">
            <Grid Width="680">
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Left">
                    <Image Source="../Assets/Images/NewMail.png"
                           Width="42"
                           Height="42" />
                </StackPanel>
                <RadioButton IsChecked="true"
                             Content="Pièce jointe"
                             Height="16"
                             HorizontalAlignment="Left"
                             Margin="120,16,0,0"
                             Name="AttachedFile"
                             VerticalAlignment="Top"
                             GroupName="LinkMode"
                             Click="radioButton1_Click" />
                <RadioButton Content="Lien vers le site"
                             Height="16"
                             HorizontalAlignment="Left"
                             Margin="217,16,0,0"
                             Name="HypperLink"
                             VerticalAlignment="Top"
                             GroupName="LinkMode"
                             Click="radioButton1_Click" />
            </Grid>
        </Border>

        <dataInput:Label Name="LabelTo"
                         Width="110"
                         Height="15"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         Margin="5,5,5,0"
                         Grid.Column="0"
                         Grid.Row="1" />
        <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Left"
                    Grid.Column="1"
                    Grid.Row="1">
            <TextBox Name="ToTextBox"
                     Width="400"
                     MaxLength="1024"
                     Margin="5,5,5,5"
                     IsReadOnly="False" />
            <TextBlock Name="ToMandatory"
                       Text="*"
                       Margin="0,10,5,0"
                       Foreground="Red"
                       HorizontalAlignment="Left" />
        </StackPanel>

        <dataInput:Label Name="LabelObject"
                         Width="110"
                         Height="15"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         Margin="5,5,5,0"
                         Grid.Column="0"
                         Grid.Row="2" />
        <StackPanel Orientation="Horizontal"
                    Grid.Column="1"
                    Grid.Row="2">
            <TextBox Name="ObjectTextBox"
                     Width="400"
                     MaxLength="256"
                     Grid.Column="1"
                     Grid.Row="1"
                     Margin="5,5,5,5" />
            <TextBlock Name="AlertToMandatory"
                       Text="*"
                       Margin="0,10,5,0"
                       Foreground="Red"
                       HorizontalAlignment="Left" />
        </StackPanel>

        <dataInput:Label Name="LabelMemo"
                         Width="110"
                         Height="15"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Top"
                         Margin="4,14,0,0"
                         Grid.Row="3" />
        <TextBox Name="MemoTextBox"
                 AcceptsReturn="True"
                 HorizontalScrollBarVisibility="Auto"
                 VerticalScrollBarVisibility="Auto"
                 TextWrapping="Wrap"
                 VerticalAlignment="Stretch"
                 MaxLength="8000"
                 Grid.Column="1"
                 Grid.Row="3"
                 Margin="5,5,5,5" />
        <TextBlock x:Name="ValidatorMsg"
                   Foreground="Red"
                   TextWrapping="Wrap"
                   FontWeight="Bold"
                   HorizontalAlignment="Stretch"
                   Grid.ColumnSpan="2"
                   Grid.Row="4"
                   Grid.Column="1"
                   VerticalAlignment="Center"
                   Margin="5"
                   Visibility="Collapsed" />

        <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Right"
                    Grid.Column="1"
                    Grid.Row="5">
            <Button Name="buttonSend"
                    Width="117"
                    Height="30"
                    Click="buttonSend_Click" />
            <Button Name="buttonCancel"
                    Width="117"
                    Height="30"
                    Click="buttonCancel_Click"
                    Margin="5,0,5,0" />
        </StackPanel>


    </Grid>

</telerikWindow:RadWindow>
